package cn.smbms.service;

import cn.smbms.dao.GamesMapper;
import cn.smbms.pojo.Games;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GamesServiceImpl implements GamesService {

    @Resource
    private GamesMapper gamesMapper;

    @Override
    public boolean AddGames(Games games) {
       boolean flag = false;
       if (gamesMapper.AddGames(games)>0){
           flag = true;
       }
       return  flag;
    }

    @Override
    public List<Games> getGames(Games games) {
        return gamesMapper.getGames(games);
    }

    @Override
    public List<Games> getGameByName() {
        return gamesMapper.getGameByName();
    }
}
